package com.flyfox.modules.hr.model;

import com.flyfox.jfinal.base.BaseModel;
import com.flyfox.jfinal.component.annotation.ModelBind;

@ModelBind(table = "tb_hr_salary_item", key = "id")
public class SalaryItem extends BaseModel<SalaryItem> {

	private static final long serialVersionUID = 1L;
	public static final SalaryItem dao = new SalaryItem();

	@Override
	public boolean delete() {
		boolean flag = super.delete();
		SalaryItemCache.init();
		return flag;
	}

	@Override
	public boolean deleteById(Object id) {
		boolean flag = super.deleteById(id);
		SalaryItemCache.init();
		return flag;
	}

	@Override
	public boolean update() {
		boolean flag = super.update();
		SalaryItemCache.init();
		return flag;
	}

	@Override
	public boolean save() {
		boolean flag = super.save();
		SalaryItemCache.init();
		return flag;
	}
}